package com.spzx.user.domain;

import com.spzx.common.core.annotation.Excel;
import com.spzx.common.core.web.domain.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * @ClassName Region
 * @Author 波
 * @Date 2024/8/3 18:24
 */
@Data
@Schema(description = "地区信息实体类")
public class Region extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @Excel(name = "地区编码")
    @Schema(description = "地区编码")
    private String code;

    @Excel(name = "上级地区编码")
    @Schema(description = "上级地区编码")
    private String parentCode;

    @Excel(name = "地区名称")
    @Schema(description = "地区名称")
    private String name;

    @Excel(name = "地区级别：1-省、自治区、直辖市 2-地级市、地区、自治州、盟 3-市辖区、县级市、县")
    @Schema(description = "地区级别：1-省、自治区、直辖市 2-地级市、地区、自治州、盟 3-市辖区、县级市、县")
    private Integer level;
}
